/**
 * Copyright 2014 Viettel Telecom. All rights reserved.
 * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.viettel.core.bussiness.report;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.viettel.core.dao.report.ReportUserDAO;
import com.viettel.core.entities.report.vo.ReportUserFilter;
import com.viettel.core.entities.report.vo.ReportUserVO;
import com.viettel.core.exceptions.BusinessException;
import com.viettel.core.exceptions.DataAccessException;

/**
 * Mo ta muc dich cua lop (interface)
 * 
 * @author: TOANTM1
 * @version:
 * @since: 17/07/2014 - 10:49:55
 */
public class ReportUserMgrImpl implements ReportUserMgr {
	@Autowired
	ReportUserDAO reportUserDAO;

	/**
	 * (non-Javadoc)
	 * 
	 * @see com.viettel.core.bussiness.report.ReportUserMgr#getReportUserTextDaily(com.viettel.core.entities.report.vo.ReportUserFilter)
	 */
	@Override
	public List<ReportUserVO> getReportUserTextDaily(ReportUserFilter fillter)
			throws BusinessException {
		try {
			return reportUserDAO.getReportUserTextDaily(fillter);
		} catch (DataAccessException e) {
			throw new BusinessException(e);
		}
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see com.viettel.core.bussiness.report.ReportUserMgr#getReportUserTextMonthly(com.viettel.core.entities.report.vo.ReportUserFilter)
	 */
	@Override
	public List<ReportUserVO> getReportUserTextMonthly(ReportUserFilter fillter)
			throws BusinessException {
		try {
			return reportUserDAO.getReportUserTextMonthly(fillter);
		} catch (DataAccessException e) {
			throw new BusinessException(e);
		}
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see com.viettel.core.bussiness.report.ReportUserMgr#getReportUserSubDaily(com.viettel.core.entities.report.vo.ReportUserFilter)
	 */
	@Override
	public List<ReportUserVO> getReportUserSubDaily(ReportUserFilter fillter)
			throws BusinessException {
		try {
			return reportUserDAO.getReportUserSubDaily(fillter);
		} catch (DataAccessException e) {
			throw new BusinessException(e);
		}
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see com.viettel.core.bussiness.report.ReportUserMgr#getReportUserSubMonthly(com.viettel.core.entities.report.vo.ReportUserFilter)
	 */
	@Override
	public List<ReportUserVO> getReportUserSubMonthly(ReportUserFilter fillter)
			throws BusinessException {
		try {
			return reportUserDAO.getReportUserSubMonthly(fillter);
		} catch (DataAccessException e) {
			throw new BusinessException(e);
		}
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see com.viettel.core.bussiness.report.ReportUserMgr#getReportUserAllDaily(com.viettel.core.entities.report.vo.ReportUserFilter)
	 */
	@Override
	public List<ReportUserVO> getReportUserAllDaily(ReportUserFilter fillter)
			throws BusinessException {
		try {
			return reportUserDAO.getReportUserAllDaily(fillter);
		} catch (DataAccessException e) {
			throw new BusinessException(e);
		}
	}

	/**
	 * (non-Javadoc)
	 * 
	 * @see com.viettel.core.bussiness.report.ReportUserMgr#getReportUserAllMonthly(com.viettel.core.entities.report.vo.ReportUserFilter)
	 */
	@Override
	public List<ReportUserVO> getReportUserAllMonthly(ReportUserFilter fillter)
			throws BusinessException {
		try {
			return reportUserDAO.getReportUserAllMonthly(fillter);
		} catch (DataAccessException e) {
			throw new BusinessException(e);
		}
	}

}
